import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './styles/index.scss'
import 'virtual:svg-icons-register'
import theme from './utils/theme'
import libs from './libs'
import './permission'
import Directive from './directives'
// import waterfall from 'vue-waterfall2'
// const app = createApp(App)
// if (waterfall && waterfall.install) {
//   app.use(waterfall)
// } else {
//   console.error('vue-waterfall2 插件未正确导入或初始化')
// }
theme(store)
createApp(App)
  .use(router)
  .use(store)
  .use(libs)
  .use(Directive)

  .mount('#app')
//   .use(waterfall)